package org.jeecg.common.modules.wx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.jeecg.common.modules.wx.entity.WxUserinfo;
import org.jeecg.common.modules.wx.vo.WxUserInfoReqVo;

import java.util.List;

/**
 * @Description: wx_userinfo
 * @Author: jeecg-boot
 * @Date:   2020-08-23
 * @Version: V1.0
 */
public interface WxUserinfoMapper extends BaseMapper<WxUserinfo> {

    /**
     * 查询用户的信息
     * @param nickname
     * @param mobile
     * @param doctorName
     * @param dataStart
     * @param pageSize
     * @return
     */
    List<WxUserInfoReqVo> selectWxUserInfo(
            @Param("nickname") String nickname,
            @Param("mobile") String mobile,
            @Param("doctorName") String doctorName,
            @Param("dataStart") Integer dataStart,
            @Param("pageSize") Integer pageSize);

    /**
     * 查询总条数
     * @param nickname
     * @param mobile
     * @param doctorName
     * @return
     */
    int getCount(
            @Param("nickname") String nickname,
            @Param("mobile") String mobile,
            @Param("doctorName") String doctorName);
}
